{% extends 'layout/mange.html' %}

{% block content %}
<div class="container">
    <h1>路径测试页面</h1>
    <p>当前路径: {{ request.path }}</p>
    <p>用户是否已认证: {{ request.user.is_authenticated }}</p>
    <hr>
    <h3>导航栏HTML结构</h3>
    <pre>{{ request.path|json_script:"current-path" }}</pre>
    <script>
        // 显示当前路径以便调试
        console.log('当前路径:', document.getElementById('current-path').textContent);
    </script>
</div>
{% endblock %}